package de.tum.team26.eistpoll.client;

import java.util.LinkedList;
import com.google.gwt.user.client.rpc.AsyncCallback;
import de.tum.team26.eistpoll.shared.PollData;

/**
 * Asyn Interface as require by GWT
 * Documentation see PollService.java
 */
public interface PollServiceAsync{
	
	void pushPollData(int id, int option, String like, String dislike, AsyncCallback<Void> callback);
	
	void getResults(boolean isLecturer, AsyncCallback<LinkedList<PollData>> callback);
	
	void checkUser(String user, String pass, AsyncCallback<Boolean> callback);
	
	void pushService(AsyncCallback<Boolean> callback);
	
	void resetStatistic(int id, AsyncCallback<Void> callback);
	
	void getActivePoll (AsyncCallback<PollData> callback);
	
	void deletePoll(int id, AsyncCallback<Void> callback);
	
	void switchPollActive(int id, AsyncCallback<Void> callback);
	
	void addPoll(String title, AsyncCallback<Void> callback);

}
